

/**
 * 分布信息类
 * @param {Array} rows 主体数据
 * @param {Number} page 当前页
 * @param {String} sidx 排序列
 * @param {String} sord 排序类型
 * @param {Number} records 总记录数
 * @param {Number} pageSize 页大小
 */
module.exports= function PageData(rows = [], page = 0, sidx = '', sord = '', records = 0, pageSize = 10) {
    this.rows = rows,
        this.page = page,
        this.sidx = sidx,
        this.sord = sord,
        this.records = records,
        this.pageSize = pageSize,
        this.total = Math.ceil(this.records / this.pageSize);


}



